using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Eamon.MeituanDotnetSDK.api.common.request;
using Eamon.MeituanDotnetSDK.attribute;

namespace Eamon.MeituanDotnetSDK.model.ddzh.merchantdata.merchantDataBooking
{
    /// <summary>
    /// 预约数
    /// </summary>
    [ApiMeta(
        Path = "/ddzh/merchantdata/book",
        BusinessId = 58,
        ApiVersion = "10002",
        ApiName = "merchant_data_booking",
        NeedAuth = true
    )]
    public class MerchantDataBookingRequest : MeituanRequest<MerchantDataBookingResponse>
    {
        /// <summary>
        /// 要查询的时间范围。1/7/30三选一
        /// </summary>
        [Required(ErrorMessage = "dateType不能为空")]
        [JsonPropertyName("dateType")]
        public int? DateType { get; set; }

        public override string ToString()
        {
            return $"MerchantDataBookingRequest{{DateType={DateType}}}";
        }
    }
}
